﻿Imports System.Runtime.InteropServices

Module WindowHack
    Public Const AU_CHILD_TITLENAME As String = "Audition"    '劲舞团子窗口标题
    Public Const AU_CHILD_CLASSNAME As String = "DLightClass" '劲舞团子窗口类名

    <DllImport("user32.dll", SetLastError:=True)>
    Public Function GetForegroundWindow() As IntPtr
    End Function

    <DllImport("user32.dll", SetLastError:=True, EntryPoint:="FindWindowExW")>
    Private Function FindWindowEx(
        ByVal hWndParent As IntPtr,
        ByVal hwndChildAfter As IntPtr,
        ByVal lpszClass As String,
        ByVal lpszWindow As String) As IntPtr
    End Function
End Module